package bmptest.bmp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
/*import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;*/

@MapperScan("bmptest.bmp.mapper") //扫描的mapper
@SpringBootApplication
public class BmpApplication  extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(BmpApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
        return builder.sources(BmpApplication.class);
    }

}
